<!DOCTYPE html>
<html>
<head>
    <title>记流水账</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
  <script src="/static/js/jquery-1.8.3.min.js">
  </script>
    <script type="text/javascript">
        window.onload=function () {
            document.getElementById("relation").onblur=function () {
                var elementById = document.getElementById("relation");
                if(elementById.value==null||elementById.value=="")
                {
                document.getElementById("re").innerHTML="值不能为空!";
                }
            };
            var workunit = document.getElementById("workunit");
            workunit.onblur=function () {
                if(workunit.value==null||workunit.value=="")
                {
                    document.getElementById("wo").innerHTML="值不能为空!";
                }
            };
            var item = document.getElementById("item");
            item.onblur=function () {
                if(item.value==null||item.value=="")
                {
                    document.getElementById("it").innerHTML="值不能为空!";
                }
            };

        }


    </script>
</head>

<body>



<div class="div_head">
            <span>
                <span style="float:left">当前位置是：账务管理-》记流水账</span>
                <span style="float:right;margin-right: 8px;font-weight: bold">
                    <a style="text-decoration: none" href="./admin.php?c=goods&a=showlist">【返回】</a>
                </span>
            </span>
</div>
<div></div>

<div style="font-size: 13px;margin: 10px 5px">
    <form action="/finance/addBusiness" method="post" enctype="multipart/form-data" id="infos">
        <table border="1" width="100%" class="table_a">
            <tr>

                <td >记账事项</td>
                <td>
                    <select name="itemsid" >
                        <#--    <#list 要遍历的key as 代替内容的变量-->
                        <option value="-1">请选择</option>
                        <#list MatterList as matter>
                            <option value="${matter.itemsid}">${matter.itemsname}</option>
                        </#list>
                    </select>
                    <span></span>
                    <a href="/finance/gotoUrl">添加</a>
                </td>
            </tr>
            <tr>
                <td>业务日期</td>
                <td>
                    <input type="date" name="businessdate"/>
                    <span></span>
                </td>
            </tr>

            <tr>
                <td>关系人：</td>
                <td>
                    <input type="text" name="relation" id="relation"/>
                    <span id="re"></span>

                </td>
            </tr>
            <tr>
                <td>往来单位：</td>
                <td>
                    <input type="text" name="workunit" id="workunit" />
                    <span id="wo"></span>
                </td>
            </tr>
            <tr>
                <td>事由：</td>
                <td>
                    <input type="text" name="item"  id="item"/>
                    <span id="it"></span>
                </td>
            </tr>
            <tr>
                <td>进/出账：</td>
                <td>
                    <select name="account">
                        <option value="-1">请选择</option>
                        <option value="0">出账</option>
                        <option value="1">入账</option>
                    </select>
                    <span></span>
                </td>
            </tr>

            <tr>
                <td>金额：</td>
                <td>
                    <input type="text" name="money"/>
                    <span></span>
                </td>
            </tr>
            <tr>
                <td>相关车辆</td>
                <td>
                    <select name="vid">
<#--&lt;#&ndash;                        <*list key as var>&ndash;&gt;-->
                        <option value="-1">请选择</option>
                        <#list vehiclelist as veh>
                        <option value="${veh.veid}">${veh.vename}</option>
                        </#list>
                    </select>
                    <span></span>
                </td>

            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" value="提交" id="sub"/>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>